<!DOCTYPE html>
<html>
    <head>
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'account.label', default: 'Account')}" />
        <title>企业信息修改</title>
    </head>
    <body class="fixed-navbar fixed-sidebar">
        <div class="small-header transition animated fadeIn">
            <div class="hpanel">
                <div class="panel-body">
                    <div id="hbreadcrumb" class="pull-right">
                        <ol class="hbreadcrumb breadcrumb">
                        </ol>
                    </div>
                    <h2 class="font-light m-b-xs">
                        企业信息修改
                    </h2>
                </div>
            </div>
        </div>
        <div class="content animate-panel">
            <div class="row">
                <div class="hpanel hyellow">
                    <div class="panel-heading">
                        企业信息修改
                    </div>
                    <div class="panel-body">
                        <g:if test="${flash.message}">
                        <div class="message" role="status">${flash.message}</div>
                        </g:if>
                        <g:hasErrors bean="${this.account}">
                        <ul class="errors" role="alert">
                            <g:eachError bean="${this.account}" var="error">
                            <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
                            </g:eachError>
                        </ul>
                        </g:hasErrors>
                        <g:form action="update1" class="form-horizontal">
                            <div class="form-group">
                                <label class="col-md-3 control-label">城市</label>
                                <div class="col-md-3"><g:select name="city.id" value="${this.account?.city?.id}" from="${com.next.City.list()}" optionKey="id" optionValue="name" class="form-control" /></div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-md-3 control-label">区县</label>
                                <div class="col-md-3"><g:select name="district.id" value="${this.account?.district?.id}" from="${com.next.District.list()}" optionKey="id" optionValue="name" class="form-control" /></div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-md-3 control-label">公司名称</label>
                                <div class="col-md-3"><g:textField name="name" value="${this.account.name}" class="form-control" /></div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-md-3 control-label">注册地址</label>
                                <div class="col-md-3"><g:textField name="registeredAddress" value="${this.account.registeredAddress}" class="form-control" /></div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-md-3 control-label">办公地址</label>
                               <div class="col-md-3"><g:textField name="officeAddress" value="${this.account.officeAddress}" class="form-control" /></div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-md-3 control-label">公司规模</label>
                             <div class="col-md-3"><g:textField name="enterpriseScale" value="${this.account.enterpriseScale}" class="form-control" /></div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-md-3 control-label">财务联系电话</label>
                                <div class="col-md-3"><g:textField name="financePhone" value="${this.account.financePhone}" class="form-control" /></div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-md-3 control-label">是否民营</label>
                                <div class="col-md-3"><g:radioGroup class="checkbox-inline" name="privateEnterprise" value="${this.account?.privateEnterprise}" labels="['是','否']" values="[true,false]">
                            ${it.radio} ${it.label}
                        </g:radioGroup></div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-md-3 control-label">实收资本币种</label>
                                <div class="col-md-3"><g:select name="currencyType.id" value="${this.account?.currencyType?.id}" from="${com.next.CurrencyType.list()}" optionKey="id" optionValue="name" class="form-control" /></div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-md-3 control-label">营业执照号</label>
                                <div class="col-md-3"><g:textField name="licenseCode" value="${this.account.licenseCode}" class="form-control" /></div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-md-3 control-label">公司代码号</label>
                                <div class="col-md-3"><g:textField name="code" value="${this.account.code}" class="form-control" /></div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <g:hiddenField name="type.name" value="${this.account.type.name}"/>
                            <g:hiddenField name="id" value="${this.account.id}"/>
                            <g:hiddenField name="targetUri" value="${targetUri}"/>
                                <div class="col-md-3 col-md-offset-3">
                                    <g:submitButton class="btn btn-info" name="create" value="保存" />
                                </div>
                            </div>
                        </g:form>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
